package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;

import java.util.Date;

import static com.gavel.database.SQLExecutor.createTable;

@TableMeta(name = "VC_SHELVES_TASK", title = "JD上架任务")
public class VCShelvesTask {

    @FieldMeta(name = "ID", title = "ID", length = 32, primary = true)
    private String id;

    @FieldMeta(name = "NAME", title = "任务名称", length = 50)
    private String name;

    @FieldMeta(name = "REMARK", title = "说明", length = 1024)
    private String remark;

    @FieldMeta(name = "STATE", title = "状态", length = 8)
    private String state;

    @FieldMeta(name = "CREATETIME", title = "创建时间")
    private Date createtime;

    @FieldMeta(name = "SOURCE", title = "来源采集任务ID", length = 32)
    private String source;

    @FieldMeta(name = "ENABLE", title = "是否上架", length = 20)
    private String enable;

    @FieldMeta(name = "ENABLETIME", title = "开始上架时间")
    private Date enabletime;


    @FieldMeta(name = "ATTRFILE", title = "属性文件", length = 1024)
    private String attrfile;


    private String title;

    private String url;

    private String status;

    private String typename;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public Date getEnabletime() {
        return enabletime;
    }

    public void setEnabletime(Date enabletime) {
        this.enabletime = enabletime;
    }

    public String getAttrfile() {
        return attrfile;
    }

    public void setAttrfile(String attrfile) {
        this.attrfile = attrfile;
    }

    public static void main(String[] args) throws Exception {
        createTable(VCShelvesTask.class);
    }

}
